package cn.lzy.demo;

import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author lzy
 * @Date 2023/12/19 14:59
 * @Version
 **/
@Component
public class Calculator {

    @TimeLog
    public int add(int a, int b) {
        System.out.println(a + "+" + b + "=" + (a + b));
        return a + b;
    }


    public int minus(int a, int b) {
        System.out.println(a + "-" + b + "=" + (a - b));
        return a - b;
    }
}
